/* eslint-disable jsdoc/require-param */
'use strict';

// 问答
function initQuesttionAnswer(router, controller) {
  router.post('/api/questtionAnswer/add', controller.questtionAnswer.add);
  router.get('/api/questtionAnswer/query', controller.questtionAnswer.query);
  router.delete('/api/questtionAnswer/delete', controller.questtionAnswer.delete);

  router.post('/api/userQuestion/add', controller.userQuestion.add);  // 添加我的问答
  router.get('/api/userQuestion/query', controller.userQuestion.query);  // 查询我的问答
  router.post('/api/userQuestion/update', controller.userQuestion.update);  // 编辑我的问答
  router.post('/api/userQuestion/hide', controller.userQuestion.hide);  // 隐藏我的问答
}

module.exports = initQuesttionAnswer;
